<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登录页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" href="css/login.css">
  </head>
  <script type="text/javascript">
	function my(){
		var msg = '${MSG}';
		if(msg!=""){
			alert(msg);
		}
	}
	</script>
  <body onload="my()">
    <header>
		<div class="logo"></div>
	</header>
	<main>
 		<div class="kuang">
        	<div class="p">
	        	<p class="sm"><a href="user/preLogin.do">账户登录</a></p>
				<p class="zh"><a href="user/preRegister.do">账户注册</a></p>
			</div>
			<form action="user/login.do" method="post">
		    	<input placeholder="用户名" class="yhm" name="uname">
		   	 	<input placeholder="密码" class="mm" name="upassword" type="password">
		   	 	<input class="l1" type="radio" name="type" value="0" />买家
	      		<input class="l2" type="radio" name="type" value="1" />卖家
	      		<input class="l3" type="radio" name="type" value="2" />管理员
		   	 	<input type="submit" class="button" value="登录" />
			</form>
		
		</div>
	</main>
	<div>
		<iframe src="footer.html" width="100%"; height="450px" frameborder="0" scrolling="no" name="headFrame" style="position: absolute;z-index:9999;"></iframe>
	</div>
  </body>
</html>
